package com.lqd.mall.common;

import com.lqd.mall.basis.response.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * @author 零起点
 * @create 2022-02-12 22:20
 */
@Api(tags = "验证码处理")
public interface CaptchaControllerApi {

    /**
     * 生成验证码
     */
    @GetMapping("/captchaImage")
    @ApiOperation("验证码生成")
    public Result<Map<String,Object>> getCode(HttpServletResponse response) throws IOException;
}
